using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace Zeus.Biz.DomainModel.NHib.Northwind {
    
    
    public class OrderDetailsExtendedMap : ClassMap<OrderDetailsExtended> {
        
        public OrderDetailsExtendedMap() {
			Table("Order Details Extended");
			LazyLoad();
			CompositeId();
			Map(x => x.OrderID).Column("OrderID").Not.Nullable();
			Map(x => x.ProductID).Column("ProductID").Not.Nullable();
			Map(x => x.ProductName).Column("ProductName").Not.Nullable().Length(40);
			Map(x => x.UnitPrice).Column("UnitPrice").Not.Nullable();
			Map(x => x.Quantity).Column("Quantity").Not.Nullable();
			Map(x => x.Discount).Column("Discount").Not.Nullable();
			Map(x => x.ExtendedPrice).Column("ExtendedPrice");
        }
    }
}
